package com.cn.yz.common.exception;

/**
 * 业务异常，可以特殊处理
 * @author sam
 *
 */
public class BusinessException extends RuntimeException{

	private static final long serialVersionUID = -2298463697919743506L;
	
	private ErrMessage errMssage;

	public BusinessException(ErrMessage errMessage){
		super(errMessage.getMessage());
		this.errMssage = errMessage;
	}

	public ErrMessage getErrMssage() {
		return errMssage;
	}

	public void setErrMssage(ErrMessage errMssage) {
		this.errMssage = errMssage;
	}
	
}
